$(document).ready(function() {
		
	$( "#ULTab" ).tabs();
	
	
	var TabNumbers = $("#ULTab").find("li").length;
	var PercentWidth = (100/TabNumbers - 2).toString() + '%';
	
	$(".ui-corner-top").width(PercentWidth);
	
	$(".TestAccordion").accordion({
		heightStyle: "content",
		collapsible: true, 
		active: false
	});
	
	
	$(".GradeRow").click(function(){
		window.location.href = "testgrading.php?trid=" + this.id;
	});
	
});




